package com.jeesite.modules.dataScreen.web;

import com.jeesite.modules.dataScreen.service.TransportationCoreService;
import com.jeesite.modules.dataScreen.web.vo.CoreBusinessRVO;
import com.jeesite.modules.dataScreen.web.vo.Result;
import com.jeesite.modules.dataScreen.web.vo.transportationcore.InfrastructureVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Api(tags = "首页-交通运输-核心业务")
@RestController
@RequestMapping("/transportationCore")
public class TransportationCoreController {

    @Resource
    private TransportationCoreService transportationCoreService;

    @GetMapping("/infrastructure")
    @ApiOperation("左侧页面接口")
    public Result<InfrastructureVo> infrastructure(){
        return Result.OK(transportationCoreService.infrastructure());
    }
    @GetMapping("coreBusinessRight")
    @ApiOperation("右侧页面接口")
    public Result<CoreBusinessRVO> coreBusinessRight() {
        CoreBusinessRVO coreBusinessRight=transportationCoreService.coreBusinessRight();
        return Result.OK(coreBusinessRight);
    }
}
